package com.clkj.zhonghui.pojo.points;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author 周佳润
 * @date 2024-09-04 09:03:16
 * 积分总表
 */
@ApiModel(value = "t_zh_rebateRelations")
@Table(name = "t_zh_rebateRelations")
public class RebateRelations implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "relation_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer relationId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 推荐人
     */
    @Column(name = "referrer_id")
    @ApiModelProperty(value = "推荐人")
    private Integer referrerId;

    /**
     * 备注
     */
    @Column(name = "note")
    @ApiModelProperty(value = "备注 会员为1 非会员为0")
    private Integer note;


    @Transient
    private String userName;


    public Integer getRelationId() {
        return relationId;
    }

    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public Integer getReferrerId() {
        return referrerId;
    }

    public void setReferrerId(Integer referrerId) {
        this.referrerId = referrerId;
    }



    public Integer getNote() {
        return note;
    }

    public void setNote(Integer note) {
        this.note = note;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
